# $Id: PKGBUILD 89278 2013-04-28 12:14:49Z cinelli $
#Maintainer: Federico Cinelli <cinelli@aur.archlinux.org>

pkgname=texmaker
pkgver=4.0.1
pkgrel=1
pkgdesc='Free cross-platform LaTeX editor'
arch=('i686' 'x86_64')
url="http://www.xm1math.net/texmaker/index.html"
license=('GPL')
depends=('poppler-qt' 'qtwebkit')
optdepends=('ghostscript: LaTeX to HTML conversion command'
	    'ibus-qt: accented characters support'bu  
	    'poppler: PDF rendering support')
install="$pkgname.install"
source=("http://www.xm1math.net/$pkgname/$pkgname-$pkgver.tar.bz2")
md5sums=('62f87f7b44e92ca68817663d3d5aeca4')

build() {  
  cd "$pkgname-$pkgver"
  qmake-qt4 PREFIX=/usr texmaker.pro
  make
}
package() {
  cd "$srcdir/$pkgname-$pkgver"

  install -dm755 "$pkgdir/usr/share"
  make INSTALL_PATH="$pkgdir" INSTALL_ROOT="$pkgdir" PREFIX="/usr" install
}
